package reflect;

import java.lang.reflect.Constructor;

public class Test {
    public static void main(String[] args) throws Exception {
        Class<?> cls = Class.forName("reflect.Student");

        Constructor<?> c = cls.getConstructor(String.class, int.class, char.class);
        Object obj = c.newInstance("李四", 22, '女');
        System.out.println(obj);
    }
}
